﻿import request from '/@/utils/request';
enum Api {
  AddBD_CodeGeneration = '/api/bD_CodeGeneration/add',
  DeleteBD_CodeGeneration = '/api/bD_CodeGeneration/delete',
  UpdateBD_CodeGeneration = '/api/bD_CodeGeneration/update',
  SaveBD_CodeGeneration = '/api/bD_CodeGeneration/save',
  PageBD_CodeGeneration = '/api/bD_CodeGeneration/page',
  ExportBD_CodeGeneration = 'api/bD_CodeGeneration/export',
}

//导出自定义编码规则
export const exportBD_CodeGenerationExcel=(params?:any)=>
	request({
		url:Api.ExportBD_CodeGeneration,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加自定义编码规则
export const addBD_CodeGeneration = (params?: any) =>
	request({
		url: Api.AddBD_CodeGeneration,
		method: 'post',
		data: params,
	});

// 删除自定义编码规则
export const deleteBD_CodeGeneration = (params?: any) => 
	request({
			url: Api.DeleteBD_CodeGeneration,
			method: 'post',
			data: params,
		});

// 编辑自定义编码规则
export const updateBD_CodeGeneration = (params?: any) => 
	request({
			url: Api.UpdateBD_CodeGeneration,
			method: 'post',
			data: params,
		});

// 保存自定义编码规则
export const saveBD_CodeGeneration = (params?: any) => 
	request({
			url: Api.SaveBD_CodeGeneration,
			method: 'post',
			data: params,
		});

// 分页查询自定义编码规则
export const pageBD_CodeGeneration = (params?: any) => 
	request({
			url: Api.PageBD_CodeGeneration,
			method: 'post',
			data: params,
		});


